package top.infopub.mgr.cap.service;

import com.github.pagehelper.Page;
import top.infopub.dto.cap.ContractMortgageDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.cap.domain.ContractMortgageDomain;
import top.infopub.mgr.cap.jsonvo.ContractMortgageJsonVo;
import top.infopub.mgr.cap.vo.ContractMortgageVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.cap.ContractMortgage;
import top.infopub.model.cap.ContractMortgageDetail;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface ContractMortgageService  extends GenericService<ContractMortgage, String> {

    /**
     * 根据条件查询抵押合同列表
     * @param contractMortgageVo
     * @return
     * @see
     */
    Page<ContractMortgageDomain> selectByDomainWhere(Page<ContractMortgageDomain> page, ContractMortgageVo contractMortgageVo);


    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    ContractMortgageJsonVo queryDetailById(String id);

    /**
     * 编辑质押合同信息
     * @param contractMortgageDto
     * @param detailList
     * @param attachmentList
     * @param submitType
     * @param vo
     * @return
     */
    RspVo edit(ContractMortgageDto contractMortgageDto, List<ContractMortgageDetail> detailList,
               List<ProjectAttachment> attachmentList, Integer submitType, AuthorizationVO vo);
}
